PROJECT(libfdt_src)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/../export)

#IF(NOT EXISTS ${LIBRARY_OUTPUT_PATH})
#    EXEC_PROGRAM(mkdir ${PROJECT_SOURCE_DIR} ARGS ${LIBRARY_OUTPUT_PATH})
#ENDIF()

#EXEC_PROGRAM(cp ${PROJECT_SOURCE_DIR} ARGS ${PROJECT_SOURCE_DIR}/lib/x86/* ${LIBRARY_OUTPUT_PATH})

SET(LIBFDT_SRC_LIST fdt_channel.c fdt_shmmgr.c fdt_daemon.c fdt_net.c fdt_vector.c)
ADD_LIBRARY(fdt STATIC ${LIBFDT_SRC_LIST})

TARGET_LINK_LIBRARIES(fdt)

#ADD_EXECUTABLE(ulayer ulayer.c)
#TARGET_LINK_LIBRARIES(ulayer fdt)

#ADD_EXECUTABLE(llayer llayer.c)
#TARGET_LINK_LIBRARIES(llayer fdt)
